<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.AAL.Model.TransferingRequest"%>
<%@page import="com.AAL.Action.TransferRequestAction"%>
<%@page import="java.util.List"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.AAL.Model.Account"%>

<h3
	style="background-color: #8AC0E9; font-size: 17px; width: 95%; padding: 10px; color: white;">Quản
lý yêu cầu điều phối hàng</h3>
<p style="clear: both;"></p>

<div style="margin: 10px;">
<fieldset style="width: 95%;"><legend
	style="margin-left: 10px; font-weight: bold;">Danh sách yêu
cầu nguồn hàng cần xử lý</legend>
<div style="margin: 10px;"><s:form id="form" method="post"
	 theme="simple" cssClass="yform">	
	<div class="type-text">
	<ul class="form">		
		<li class="left">Chọn kho yêu cầu</li>
		<li class="right"><s:select name="wareHouseChose" list="listRegion"
				listKey="regionID" listValue="regionName" 
				label="Kho yếu cầu" /></li>
		<li class="clr"></li>
		<li class="left">&nbsp;</li>
		<li class="right"><s:url id="sourcingRequestByWareHouse" value="/sourcingRequestByWareHouse" /> <sj:submit
			title="Tìm kiếm" id="lnksourcingRequestByWareHouse" href="%{sourcingRequestByWareHouse}"
			button="true" value="Chọn" targets="container"></sj:submit></li>
		<li class="clr"></li>
	</ul>

	</div>

	
</s:form></div>
<div class="type-text">
<s:form id="form11" method="post">
<table width="99%" cellpadding="0" cellspacing="0" id="box-table-a"
	summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="10%" scope="col">Chọn yêu cầu</th>
			<th width="5%" scope="col">STT</th>
			<th width="20%" scope="col">Mã yêu cầu</th>
			<th width="20%" scope="col">Nhân viên tạo</th>
			<th width="15%" scope="col">Kho cần nhập</th>
			<th width="10%" scope="col">Ngày tạo</th>
			<th width="15%" scope="col">Trạng thái</th>
			<th width="10%" scope="col"></th>			
		</tr>
	</thead>
	<tbody>
		<%
			int stt = 1;
		%>
		<s:iterator value="lstSourcingRequest">
			<tr>
				<td><input type="checkbox" name="lstItemChoised"
					value="<s:property value='sourcingRequestID'/>"
					id="item_<s:property value='sourcingRequestID'/>" /></td>
				<td><%=stt++%></td>
				<td><s:property value="sourcingRequestID" /></td>
				<td><s:property
					value="employeeByHO.account.accountInformation.fullName" /></td>
				<td><s:property
					value="employeeByHO.account.accountInformation.city.region.regionName" /></td>

				<td><s:date name="requestDate" format="dd/MM/yyyy" /></td>
				<td><s:property value="statusOfRequest.statusName" /></td>
				<td><s:url id="sourcingRequestViewDetail"
					value="/sourcingRequestViewDetail?id=%{sourcingRequestID}" />
				<sj:a title="Thông tin chi tiết"
					href="%{sourcingRequestViewDetail}" targets="container"	> Chi tiết
            </sj:a></td>			
			</tr>



			<tr></tr>
			<tr class="footer">

			</tr>
		</s:iterator>
		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right"><!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
		</tr>
	</tbody>
</table>
<s:hidden name="wareHouseChose" value="%{wareHouseChose}"></s:hidden>
<ul class="form" style="margin-right: 100px "> 
	<li class="left" >
	<s:url id="Manager_TransferingRequest1" value="/Manager_TransferingRequest" /> <sj:submit
			title="Trở lại" id="Manager_TransferingRequest1" href="%{Manager_TransferingRequest1}"
			button="true" value="Trở lại" targets="container"></sj:submit>
	</li>	
	<li class="right">		
		<s:url id="ProcessSourcingRequest2TransferRequest_1" value="/ProcessSourcingRequest2TransferRequest_1" /> <sj:submit
			title="Xử lý phiếu yêu cầu xây dựng phiếu điều phối" id="ProcessSourcingRequest2TransferRequest_1"
			href="%{ProcessSourcingRequest2TransferRequest_1}" button="true" value="Xử lý"
			targets="container"></sj:submit></li>

	</ul>
	
</s:form>
</div>

</fieldset>

	
</div>
